﻿using Common.Enums;

using CommunicationLibrary.TransportData;

namespace GameGraphics.Components
{
    internal class Hitpoints : Text
    {
        public Hitpoints(string id, FontSizeEnum fontSize, FontEnum fontEnum)
            : base(id, fontSize, fontEnum)
        {
            this.Layer = 99;
        }
        
        public void Update(Tile tile)
        {
            this.Value = tile.Hitpoints.ToString();
        }
    }
}